package com.bjsxt.sm.spring.mvc.controller;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.bjsxt.sm.common.controller.BaseController;

import com.bjsxt.sm.common.util.PageInfoUtil;
import com.bjsxt.sm.users.pojo.Achecktable;
import com.bjsxt.sm.users.pojo.Arenttable;
import com.bjsxt.sm.users.service.IAchecktableService;

@Controller
@RequestMapping("/servicecount/")
public class revertCarController extends BaseController
{
	@Resource
	private IAchecktableService checktableService;

	// 当月应还汽车
	@RequestMapping("/thisMonthReturnCar")
	public String thisMonthReturnCar(Model model, String currentPage, String pageSize)
	{
		// 分页
		PageInfoUtil pageInfoUtil = proccedPageInfoUtil(currentPage, pageSize);
		Map<String, Object> condMap = new HashMap<>();
		List<Achecktable> check = this.checktableService.findCondListAchecktableService(pageInfoUtil, condMap);
		//存储到四大作用于中
		model.addAttribute("pageInfoUtil",pageInfoUtil);
		model.addAttribute("check",check);	
		return "/servicecount/thisMonthReturnCar";
	}
}
